def sg(x):
    if f[x] != 0:
        return f[x]
    s = set()
    for i in range(x):
        for j in range(i + 1):
            s.add(sg(i) ^ sg(j))
    i = 0
    while i in s:
        i += 1
    f[x] = i
    return i


n = int(input())
a = list(map(int, input().split()))
f = [0]*105
res = 0
for i in range(n):
    res ^= sg(a[i])
if res == 0:
    print('No')
else:
    print('Yes')

